{include file="public/top"}

{notempty name="nav"}
{volist name="nav" id="vo"}
{if condition="$cur eq $vo.tag"}
{volist name="vo.show" id="v"}
    <img src="{$v.thumb|geturl}" width="100%" alt="{$v.title}" />
{/volist}
{/if}
{/volist}
{/notempty}

<div id="page">
	<div class="leftList">
    	{notempty name="goods_cate"}
        <div class="title">产品中心</div>
            <ul>
                {volist name="goods_cate" id="vo"}
                <li><a href="{:url('index/goods/index',['cate_id'=>$vo.id])}" title="{$vo.name}">{$vo.name}</a>
                    {notempty name="vo.cate2"}
                    <div class="hide">
                        {volist name="vo.cate2" id="v2" key="k2"}
                        <p>
                            <b>
                                <a href="{:url('index/goods/index',['cate_id'=>$v2.id])}">{$v2.name} {notempty name="v2.cate3"}|{/notempty}</a>
                            </b>
                            {notempty name="v2.cate3" }
                            <i>
                                {volist name="v2.cate3" id="v3" key="k3"}
                                <span><a href="{:url('index/goods/index',['cate_id'=>$v3.id])}">{$v3.name} &nbsp; {if condition="$k3 neq count($v2.cate3)"}|{/if}</a></span>
                                {/volist}
                            </i>
                            {/notempty}
                        </p>
                        {/volist}
                    </div>
                    {/notempty}
                </li>
                {/volist}
            </ul>
        </div>
        {/notempty}
    
    <div class="rightCon">
    	<div class="crumbs">
        	您目前所在位置： <a href="{:url('index/index/index')}" >首页</a> &nbsp; » &nbsp; 产品中心  &nbsp; » &nbsp; {$info.goods_cate_id|get_goods_cate_name}        </div>
        
        <div class="productCon">
        	<div class="top">
            	<div class="leftPic">
                	<img src="{$info.thumb|geturl}" >
                </div>
                <div class="rightTxt">
                	<h1>{$info.title}</h1>
                    <p>品牌：{$info.brand_id|get_brand_name}</p>
                    <p>分类：{$info.goods_cate_id|get_goods_cate_name} </p>
                    <p>商品编号：{$info.number_sn}</p>
                    <p>浏览次数：{$info.click}</p>
                    <p><img src="__IMG__/fx.jpg"></p>
                </div>
            </div>
            
            <div class="sm">
            	<div class="title">详细说明
                	<span style="float:right; position:relative; top:5px"><a href="/public{$info.pdf_url|geturl}" download="{$info.title}" onclick="return check_users('download',{$info.pdf_url})"  target="_blank"><img src="__IMG__/pdf.png" /></a></span>
                </div>
                <div style="margin-top:10px; line-height:24px; font-size:14px; min-height:300px; overflow:hidden" class="cc">
                {$info.content}
                </div>
            </div>
                        
            <div class="d_page" style="font-size:15px; line-height:26px; color:#666; padding-top:20px">
				<p>上一篇：
                    {notempty name="$last"}
                    <a href="{:url('index/goods/info',['cate_id'=>$cate_id,'id'=>$last.id])}" title="{$last.title}">{$last.title}</a>
                    {else}
                    <a href="javascript:;" title="没有了">没有了</a>
                    {/notempty}
                </p>
                <p>下一篇：
                    {notempty name="$next"}
                    <a href="{:url('index/goods/info',['cate_id'=>$cate_id,'id'=>$next.id])}" title="{$next.title}">{$next.title}</a>
                    {else}
                    <a href="javascript:;" title="没有了">没有了</a>
                    {/notempty}
                </p>
			</div>

        </div>
    </div>
</div>
{include file="public/bottom"}
</body>
</html>

<script type="text/javascript">
    function check_users(path,id)
    {
        var flag = false;
        $.ajax({
            url:"{:url('index/common/download')}",
            data:{'path':path,'id':id},
            type:'post',
            async: false,
            dataType:"json",
            success:function(res) {
                if(res.code == 1) {
                    alert(res.msg);
                    flag = false;
                } else {
                    flag = true;
                }
            }
        });
        return flag;
    }
</script>